WCPay\WooPay\WooPay_Session D

Total Complexity 172
Dependencies 23
Dependents 7
Total lines 1,026
Lines of code 600
Logical lines of code 324
Comment lines 260
Methods 33
Properties 0

Methods 33

Method Rating Maintainability Complexity Lines of code
get_init_session_request()
B
33 18 89
get_option_fields_status()
B
38 17 69
woopay_order_payment_status_changed()
A
48 10 30
get_user_email()
A
51 10 28
get_user_id_from_cart_token()
A
52 10 22
ajax_init_woopay()
A
46 9 33
get_payload_from_cart_token()
S
55 7 20
woopay_trial_subscriptions_handler()
S
59 7 15
ajax_set_woopay_phone_number()
S
50 6 29
get_frontend_init_session_request()
S
59 7 11
determine_current_user_for_woopay()
S
56 6 18
add_woopay_store_api_session_handler()
S
59 6 13
get_blocks_terms_and_conditions_text()
S
54 5 22
automatewoo_refer_a_friend_referral_from_parameter()
S
60 5 13
get_store_api_url()
S
61 5 11
get_woopay_minimum_session_data()
S
56 4 18
run_and_remove_woopay_restore_order_customer_id_schedules()
S
58 4 16
is_woopay_enabled()
S
68 5 6
ajax_get_woopay_session()
S
58 3 17
ajax_get_woopay_minimum_session_data()
S
58 3 17
get_inner_block()
S
58 3 17
get_formatted_custom_terms()
S
57 3 16
get_checkout_data()
S
59 3 13
get_cart_data()
S
61 3 10
array_map_recursive()
S
69 2 6
get_woopay_verified_email_address()
S
74 2 4
is_request_from_woopay()
S
77 2 3
restore_order_customer_id_from_requests_with_verified_email()
S
65 2 9
init()
S
63 1 9
create_woopay_nonce()
S
68 1 6
init_store_api_token()
S
76 1 4
has_valid_request_signature()
S
79 1 3
sanitize_string()
S
79 1 3